FROM atlassian/crucible:latest

USER root

# 将代理破解包加入容器
COPY "atlassian-agent.jar" /opt/atlassian/bitbucket/

# 设置启动加载代理包
RUN echo 'export JAVA_OPTS="-javaagent:/opt/atlassian/bitbucket/atlassian-agent.jar ${JAVA_OPTS}"' >> /opt/atlassian/bitbucket/bin/set-jre-home.sh